package cn.wxz1997.permission.model;

import cn.wxz1997.permission.pojo.Permission;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: ${todo}
 * @Author: wxz1997
 * @Date 18-8-10下午3:28
 */
@Data
@NoArgsConstructor
public class Role {
    private Integer id;

    private String name;

    private String roleKey;

    private Byte status;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;

    private List<Permission> permissions;
}
